home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Inspectors / WrapperInspector / DefaultSubInspector.m < prev    next >
Text File  |  1995-06-12  |  2KB  |  66 lines

  1. //----------------------------------------------------------------------------------------------------
  2. //
  3. //    DefaultSubInspector
  4. //
  5. //    Inherits From:        Object
  6. //
  7. //    Declared In:        DefaultSubInspector.h
  8. //
  9. //    Disclaimer
  10. //
  11. //        You may freely copy, distribute and reuse this software and its
  12. //        associated documentation. I disclaim any warranty of any kind, 
  13. //        expressed or implied, as to its fitness for any particular use.
  14. //
  15. //----------------------------------------------------------------------------------------------------
  16. #import "DefaultSubInspector.h"
  17.  
  18.  
  19. @implementation DefaultSubInspector
  20.  
  21.  
  22. //----------------------------------------------------------------------------------------------------
  23. //  Initialization and Free Methods
  24. //----------------------------------------------------------------------------------------------------
  25. + new
  26. {
  27.     // 'new' because this is how WMInspector does it.  (We'll call 
  28.     //  alloc/init though, as not sure what WMInspector's new did).    
  29.         return [[super allocFromZone: [self zone]] init];
  30. }
  31.  
  32.  
  33. //----------------------------------------------------------------------------------------------------
  34. //  Accessing Inspection View
  35. //----------------------------------------------------------------------------------------------------
  36. - inspectorView
  37. {
  38.     [self clearInspectorView];
  39.     return [inspectorView contentView];
  40. }
  41.  
  42.  
  43. - clearInspectorView
  44. {
  45.     return self;
  46. }
  47.  
  48.  
  49. //----------------------------------------------------------------------------------------------------
  50. //  Inspection Methods
  51. //----------------------------------------------------------------------------------------------------
  52. - inspect: (STR) path
  53. {
  54.     return self;
  55. }
  56.  
  57.  
  58. - inspectionError: (STR)path
  59. {
  60.     [self clearInspectorView];
  61.     NXRunAlertPanel (NULL, "Unable to inspect %s!", NULL, NULL, NULL, path);
  62.     return self;
  63. }
  64.  
  65.  
  66. @end